using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Messenger.DataAccess.Attributes;
using System.Runtime.Serialization;

namespace Messenger.DataModel
{
	[DataContract]
	public class Messages
	{
		[PrimaryKey]
		[AutoIncrement]
		[MandatoryValidation]
		[DataMember]
		public long ID { get; set; }
		[MandatoryValidation]
		[DataMember]
		public string Sender { get; set; }
		[MandatoryValidation]
		[DataMember]
		public string Receiver { get; set; }
		[MandatoryValidation]
		[DataMember]
		public string Message { get; set; }
		[MandatoryValidation]
		[DataMember]
		public DateTime SendDate { get; set; }
		[MandatoryValidation]
		[DataMember]
		public bool IsNewMessage { get; set; }
	}
}
